/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ControladoresUI;

import Entidades.Usuario;
import ManagersUI.CursoManager;
import javafx.event.*;
import javafx.fxml.FXML;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
/**
 * FXML Controller class
 *
 * @author JEscalante
 */
public class CursosController{

    /**
     * Initializes the controller class.
     */
    CursoManager cursoManager;
    @FXML private HBox pnlPrincipal;
    
    public void initialize() {}
  
    public void initManager(final CursoManager cursoManager) {
        this.cursoManager = cursoManager;
        this.cursoManager.pnlPrincipal = this.pnlPrincipal;
        this.cursoManager.showPnlCursoInicio(null);
    }
   
    @FXML
    private void abrirPnlCursoInicio(ActionEvent event){
        this.cursoManager.showPnlCursoInicio(null);
    }
    @FXML
    private void abrirPnlTiposCursoInicio(ActionEvent event){
        this.cursoManager.showPnlTiposCursoInicio();
    }
    @FXML
    private void abrirPnlSeccionesInicio(ActionEvent event){
        this.cursoManager.showPnlSeccionesInicio();
    }
    
  

    
}
